Kanzi 4.0.0-beta2
kanzi::StateManager::StateObject Class Reference

#include <kanzi/core.ui/state_manager/state_manager.hpp>

Public Member Functions

const string & getPath () const
 Returns target object path for this state object.
 
StyleSharedPtr getStyle () const
 Return style of this state object.
 
void setPath (string_view path)
 Sets target object path for this state object.
 
void setStyle (const StyleSharedPtr &style)
 Sets the style for this state object.
 

Static Public Member Functions

static StateObjectPtr create ()
 

Member Function Documentation

◆ create()

static StateObjectPtr kanzi::StateManager::StateObject::create ( )
static

◆ setPath()

void kanzi::StateManager::StateObject::setPath ( string_view path)

Sets target object path for this state object.

◆ getPath()

const string & kanzi::StateManager::StateObject::getPath ( ) const

Returns target object path for this state object.

◆ setStyle()

void kanzi::StateManager::StateObject::setStyle ( const StyleSharedPtr & style)

Sets the style for this state object.

The given style defines the property values for target object when this state object is active.

Parameters
styleSpecifies the set of properties, bindings, and node components to add to the target object when this state object is active. The style must be created with Style::createWithValueModifiers. Modifies the passed style by calling togglePropertyNotifications(false).

◆ getStyle()

StyleSharedPtr kanzi::StateManager::StateObject::getStyle ( ) const

Return style of this state object.


The documentation for this class was generated from the following file: